#include<iostream>
using namespace std;
int main()
{
	for (int i = 0; i <= 100/5; i++)
	{
		for (int y = 0; y <= 100 / 3; y++)
		{
			for (int z = 0; z <= 100 * 3; z++)
			{
				if (5 * i + 3 * y + z / 3 == 100 && i + y + z == 100 && z % 3 == 0)
				{
					cout << i << " " << y << " " << z << " " << endl;
				}
			}
		}
	}
	return 0;
}